<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .d1{
            height: 100px;
            background: #00a2d4;
        }
        .d2{
            float: right;
            width: 200px;
            height: 100px;
            background: red;
        }
    </style>
</head>
<body>
<div class="d1">
    <div class="d2"></div>
</div>
</body>
</html>